package com.pine.app.module.security.oauth.provider.token;

import com.pine.app.module.security.oauth.provider.OAuth2Authentication;

/**
 * @author xiaoyuan
 * @create 2019/9/30
 **/
public interface AccessTokenService {

    OAuth2AccessToken createToken(OAuth2Authentication authentication);

    OAuth2AccessToken refreshAccessToken(String refreshTokenValue);

    OAuth2AccessToken getAccessToken(OAuth2Authentication authentication);
    OAuth2AccessToken getAccessToken(String  accessToken);

    OAuth2Authentication loadAuthentication(String accessToken);

    boolean removeToken(String accessToken);


}
